package com.sunwayworld.basemodule.coredata.pjmethod.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sunwayworld.basemodule.coredata.pjmethod.bean.LimsPjMethodVersionBean;
import com.sunwayworld.basemodule.coredata.pjmethod.dao.LimsPjMethodVersionDao;
import com.sunwayworld.basemodule.coredata.pjmethod.mapper.LimsPjMethodVersionMapper;
import com.sunwayworld.framework.mybatis.dao.MybatisDaoSupport;
import com.sunwayworld.framework.spring.annotation.GikamBean;

@Repository
@GikamBean
public class LimsPjMethodVersionDaoImpl extends MybatisDaoSupport<LimsPjMethodVersionBean, Long> implements LimsPjMethodVersionDao {

    @Autowired
    private LimsPjMethodVersionMapper limsPjMethodVersionMapper;

    @Override
    public LimsPjMethodVersionMapper getMapper() {
        return limsPjMethodVersionMapper;
    }

    @Override
    public Integer selectMaxVersion(Long methodId) {
        return getMapper().selectMaxVersion(methodId);
    }

}
